main code paste