add new function to mycode.c