removed error function added title blocks