change state sving method