added debug lines