Update code

Add this feature to fix bugs