wrapping all() with within()