cleaning up some position code to use only tuples