fixed warning errors