creating base code