modify procedure flow