avoid duplicates in local function names