started main code