removed extraneous pass and pdb
use filter instead of [o for o ...]