added @filter variable in show method