smalloffer template refactored