updted map script