An investigation on the dynamics of sway