input.transform() pattern
compute & transform functions