fix filterposition argument
minor fixes/cleanup