read sample weight from style->size instead of processing key