added arrange function in