added missing modifiers for variables and constructor