add extra attributes to be calculated and saved