sorting and style issues