test
flattened theta for a speedup