not sure why this doesn't work with a method within a class, but whatever.