the other way was dumb, this is much better