[update] created functions for assignment