log not working. using print