fixed fold with functions including - (printf issue)