updated block.cc