changed the heuritic a little bit