simplified version of searching gradient, computes more reliable features