moved edits to method