prepearing code structure for blocks