addding checks