changed double to int