works for both compare btns