moment functions for gel