format strings
remove unused code