Thank you all for response. Now my next question is how to handle new user addition / substitution if any user is on leave. My thought is replace temp user with absent user.for example: if a = 1,b = 2 then using temp variable I have to swap a= 2 ,b = 1.please help me in this.