type for derivative