to adjust rank