formatting & fixed incomplete flag