prices add function to return none as zero