completed boolean function, number function, and string function