some twiddling with performance