Removed changeEnchType and added updateEnchType, Cleaned code