set resources dinamic