var wrong in logs