added buffer, updated variables for enchant