rushil updated the edit function again