temp version
fix syntax error of 'if'