remove print in scala and java timers