added in an exception for remove function
added the delete function