add Subtract method for template