changed double to num