fixed gcc complaints