added destructuring arys in blocks