refactor 'function' -> 'public funtion'