clean up co-ordinate array formatting