error checking for chromosome