changes to heuristic. still not working