-implement obtainAttributes