added param to check item type