remove unnecessary fields