setting up errors collections