implemented block-values function