add test
fix: condition functions that return primitives