fixed best arrangment check