forum code with modifications