working blocks, still need to sum at end