changed method to a static method