deleting function in place
merged