refactor to save a line