buffername and filename functions.