minor readability improvement to og function