fixes all warnings