add submit and repeat checking