made it work all the way through
changed to do pixel counts