getBlock works