changed double to long