renaming function to respect visitor pattern