change messages anf length schema