added constants for TRUE and FALSE to make them more visible in the code