set definition flag
clean up