trying to fix boolean ref