move another block into a function.