actually, nvm. we can't simplify the logic below anyway.