fix prepare() usage