removed undefined variable