added method to check schema