added logs to check