shiny updated & workaround solution sampling method