one more solution for moving problem