completed the curd operation