changes to guide8.m, but not finished yet