add xy limits to first method: NEED TO SIMPLIFY BOTH METHODS