fixed gcc's warnings
fixed gcc's warnings