modify peak api