merge redundant function params