removed public from function that is not in a class again