add some const related code