gencode for funtion