use correct inner product in transformation matrix construction