regex should be somewhere else