corrected filter with proper echo command