hard refactoring (algorithm data)