bug fixes, delete function