fixed recreate issue

updated sample