fixing Resources class