merge works in single file