added type query