added speed utility for testing