added put statements for debugging purposes