added function to get subshapes