cleaning up population mode