removing redundant function