make many Block's shared_ptr'ed

Make it a pointer if you intend it to be changed inside the function.