move function in different modules