working with n:m relations save