added funmode