can properly console.log(coords) but not store