before new graphics stuff