attributes definition and computation