clear some remained code