result logic finished