changed to static class constructor