add public to function