linear fn working, graphics updated