fixing sampling method