adding the block diagram