fixed all warnings.