start to write main