changed the process of adding the block