add setter for xb and yb
add setter for xb and yb