trying to improve runtime