use Double instead of int