another attempt at checking the attribute