debug printlns added