fixed steepest descent, its still a piece of shit though.