preparation for various algorithms in contact laws