added the missing stage defining conditions in insert_other procedure