figured out regExp, made global variables