added layer filtering