handles true and false