improving task ordering