add shapes.jl in the place of common.jl, with the mapshape & maplength functions