add const and table init