fixed. undefined variable