small refactor take out whitespace and add commentary