moved to new string.format() code