added description and changed logging technique