fixed typos, regex