add delete functionality and test