solving a few sorting issues