small adjustments to code, large front material