added sub to subtract a list of number
added sub to subtract a list of number
changed sub function to  so to be inline with new format