update some particles and logic code