astar fix. revert to normal value function