add new function info_from_fn