rev1 -loop not quite right