added regex to check