remove unnecessary properties