added skip parameter to the query criteria