finalize positive and negative computation