now using Double instead of Number