using wrong variable