add generator sample