spell system implemented