phase functions