corrected order of statements, refs #345