split building of edits into separate method