corrected return value of prepare