removing warnings from compilation