added variable sample