change method to static