overlooked several other variables; we declare possibly un-used variables now. empty dims still an issue