modified useful-info fuction