adding calculated level attributes