sample controller