cascade function

make ascending and descending vector