add information query function code