before testing function split