functions to obtain face infomation