added default val to query method