resolvendo problema do resource