adding code to ruby_block