removed reference max