log was not defined