update function shellSord