added putBuffer