adding function statement and variable