changed filter to servlet