changed addBlock to add