working with debug