minor changes to inverse