trying without writing to file