fixed concatAll fn
add compact fn