removed faulty print to errorlog