tweak to handle statement results