changes false to true twice