fixed end ordering