handle the return value of the store procedure