fix const problem