graphics naive implementation