putting filter into list comp