debug function input value from integer to boolean