implemented the new getTargetBlock method