check number of ids and alts: print line