set default attr type