adjust ordering