add beginning of delete functionality