change band to apparent mag, added error msg fix