refactor several  non-literal format strings into literal formatstrings