trying to get rid of the white flash