create correct diagonal check