sorted out dodgy regex