:bug: speed up for reference case