check instance type properly