chang base code