added logic to delete entries