applying the same excluding to reference_last