Arduino is fine when connected to computer but not when on battery

true, yes its a brand new battery