change reconect logic