first version of new core_draw() function -> buggy