complete logic of site