new problem works using ints
double using ints added