added optionnal bound check compile - fixed error reporting