shorter between function