wrong variable assignment