add check for same var in different blocks inside the same method