removed redundant function