refactors model names type instead of singular name of resource