updated get delete functionality