Add xType and yType