cleaning of warnings