improving code
playing with logs