fixed gradient hopefully