removed id parameter in generatePath method