remove unnecessary nipals calculation