make buffer faster