added coordinates to code