only read in and output gal ID and group ID