trying to figure out loop for local again
local comp works, but graph looks odd.