calculations on models