added type for searching