made parameter calculations 'private'