David- >> deltaX<<(21-z) >> >> is the bit I guess i am looking most to figure out? Howz about repeat (21-z) times put deltaX * 2 into deltaX end repeat -- Mark Wieder mwieder at ahsoftware.net