added gradient to the blocks