first step to integrate shamir alg (only for testing)