added instructions for error handling