changed method println(String s)