. the benefits payable under the plans are generally determined on the basis of an employee 2019s length of service and/or earnings . employer contributions to the plans are made , as necessary , to ensure legal funding requirements are satisfied . also , from time to time , we may make contributions in excess of the legal funding requirements . service cost for 2017 relates to benefit accruals in an hourly union defined benefit plan in our security segment