now works with no imp filter sql changed