made types optional in business queries