added multiFunction function