removed sorting to increase performance