Transform function in static way