added debug part