adding handling for boolean variables.