optimization with better data structure for handles and color boxes
removed console prints