fixed indentation error in magic