move method to utility class