fixed it, now works with a proc and block