astar works