added getting filter from query parameter