changed methods to static