add assignment function