edit ScalarProduct