code adjustment per jim to increase speed