use boolean where appropriate