make error proc to follow set