removed exit statement
tracking grey object counts per page using a boolean instead of a count