correcting findPath to add compose path in the argument list for verification.