Energy dependent potential in nuclear collisions