Is there a way to combine these two lines?