set type in query object