add $apply method
merge
Merge branch 'apply'