changed sum func to Numeric instead of Integer oops