* fixed wrong usage of sequence
* saving memberships