adjust diagram