micro optimizations
refactoring performance tests