prepare expect