all codes for tests ran in APL research