merged loop unwinding and loop...