with Priority order