struggling with debugging