add size query
handle size query with IM