removing warnings from classes