removes unnecessary imports