write main part of code