added transform data method