removed redundant function declaration and usage