moved static method to correct class.