modify controller sample