change result to double