add language as an optional parameter to update