fix a bug, this was only checking half of the file. now it checks all