remove alert and cd at last;