add function conditions