add the finals functions