makeFunction function added