added priority order