function resolved. new issue

statement list seems to start from the last statement