use outer instead of inner