fixed unneccessary loggin