bug with same named variables