remove reduntant function call