created functions of assignment