update define resource method