id var were wrong