add continue logic