add NEXT statement
check for missing return statement