fixed a warning about unused member