removed redundant function call overhead