[IMP] improved _compute method to new API.