added debug for printing