refs #4903 added some comments and better naming