implementing delete record