removing variables in constructor