modify subcontents functions