fixing membership creation