changed static method to string method