get rid of .apply() and a licence typo