The influence of non-perfect code subgroups on the structure of the groups