my $overwrite = length($function)>1 ? 1 : 0;