FIX: change method name from 'applyType' to 'apply'