fixed bugs edit assignment function