safeguard bool corrected for later use