Changed apply to applyT