supporting boolean and integer