add beginnigs of filtering