revise inverse and transposePath