adding counter logic for structure wall