fixed gradient; made utility