catching errors added