added a getat relative position method