moved apply to Transformer as its called here