fixed a typo
added a log operation instead of printlns