genreate code