magic_function is finished at this time
add class de..