added title, fixed error trap