first draft of peak implementation