Tried then instad of success, cleaned up parent scope syntax in getCategores