test refactoring
double calc bug sims ok