create code per issue 1