finally fixed find reverse path
finished fixing bugs with proj1, ready for input into proj3