removed extra log code