change logic in devide