improve runtime performance