setting localvar type properly should fix