added a transform function to list helper