put function in different files