added loggin statement