modify penalty for astar