fixing access level of constructor