little bug fix after last commit - default func define