reversed the order
fixed conflict and re-ordered the input coords params