problem with logging in var, checking rest of templates