update KS and AK