creates xs and os