revert test file & separate function