ability to use refs with or statements