make program more stable