assign to global bases conditionally