remove numbers attribute, reorder private method for readability