updated variable name to fix bug