fixes first-class function statement