copy only required elements