removed debug stuff for LES
a more complete conversion