amazing speed up; hope no error