use expect() syntax