changed the cycle of SSL calculation