changed fixdefect to match sandy's instructions. fixed issue with planned
closing version
updated comments appropriatly