movefunc in seperate file