changed declarations to a appropriate access level