tweaks so the ragdoll looks better and code is more understandable