put some consts and assertions in place