moving file to the correct dir