setting before filter for instance variables