handle correcly the rm function
merge