moving generic methods to utility classes