homoperiodic function