changed int to double