light code cleanup; fix case where file contains a mix of changed and unchanged functions