debug method correct