rough draft of function for getting coordinates