solved some basic median problems... filters are next!