creates function for handling partial content