fixed some errors my regex made