added loggin