using functions inside of blocks and values