had wrong variable in expression