functions coded.