add edit assignment function.