Added var to fix syntax error