redo population class for faster sorting