boolean input functionality added