made vectorizatio changes, suggested by John Zwinck