get attribute before usage