clean up
to support old c compiler for loop initial delcarations is removed