fixing the trust check not being made in the right place.