Change lat long algo