minor code refactor for clarity