updated delete in model