tried fixing regex check