added the flow
catching error
error display