correct boolean handling