There were two major types of pterosaurs. Basal pterosaurs (also called 'non-pterodactyloid pterosaurs' or 'rhamphorhynchoids') were smaller animals with fully toothed jaws and, typically, long tails. Their wide wing membranes probably included and connected the hind legs. On the ground, they would have had an awkward sprawling posture, but their joint anatomy and strong claws would have made them effective climbers, and they may have lived in trees. Basal pterosaurs were insectivores or predators of small vertebrates. Later pterosaurs (pterodactyloids) evolved many sizes, shapes, and lifestyles. Pterodactyloids had narrower wings with free hind limbs, highly reduced tails, and long necks with large heads. On the ground, pterodactyloids walked well on all four limbs with an upright posture, standing plantigrade on the hind feet and folding the wing finger upward to walk on the three-fingered "hand". They could take off from the ground, and fossil trackways show at least some species were able to run and wade or swim. Their jaws had horny beaks, and some groups lacked teeth. Some groups developed elaborate head crests with sexual dimorphism.