optimization (WHOA I USED REGEX)