how do subplots work