reconfig algorithm
gui update bug fixed