functions assignment