added fastApply method to the function prototype