added fn_defails function to its own file