reset code to base