using wrong variable here