utilities function class