fixed name buffer issue. removed rm_dot() function- unnecessary.