remove console code