add query function in ProBox class.