format ,remove console code