checking attr type