make position take a pair of coordinates instead of a list