trying to move reformatting to gem