updating complete logic