refactor to remove extra indented space