any_type refactor