gradient-related method