changed inputs from int to double

int -> double