added state variables