fixed dictionary keys in assign_points function