fix define function

fix define function