corrected some errors in concat and maxproj