made all variables private and static