Make transform func clearer