use correct attribute to check for result type