just need to pass the block variable as param