added function to convert coords list into coords dictionary