improve performance and avoid additional elements