start flag setting work