damping, sorting added, needs work