trying to solve resources issue