setting values to blocks