code ready for debugging