red green refactor edits