modified getBlock to remove unwanted return