update stage and update ghost