remove public from non-class methods