Allowed to enter booleans as arguments

Allowed to enter booleans as arguments, and removed unused line that cause compilation error