method to yield inner or outer blocks