coordinates are now stored in an array