add enhancements to the remove an insert functions but they are not working very well, still, the insert function should not be used