added debug for last line code status