cleanup; comment function