wrap arrays in result
cleanup
cleanup