removed id in update function