fix varible is not define error