adds needed checks