main code added