A hysteretic connection element and its applications