Gram points and function