adding loging in