added a block to capture the tap