use power of three to avgsim and got a better result