modified debug