fixed compillation warnings