debug info
refactored