made all functions public