removed duplicate good parts, and added escape sequence for backslash character