added forE and forV -- thanks pieter martin. this greatly simplied lots of code.