edit some logic parts