remove regex stuff as it's not used