renamed some private members for clarity