added coords function