works
moved static methods into a class