updated boolean input and output