Solve little problem with visibility of method