better check for attr