fixing trailing backslash error