problem of sample weight fixed