refactoring to tighten up the knockout helper methods