removed redundant function call