added micro optimization that results in code that even mike could not write right the first time.