delete function is spelled incorrectly