tables A P LO OFS and PI are filled now. tests to refactor