[DEBUG] error in the const function