testing for optimization