add cx and cy