implementing warnings