replace refPoint to an object instead of array