copying content from source to destination file