added multi-sample