defined the blocks