shape -> n