prevent boolean type error