remove unused variables
change colors
input smoothing
small simplification
only redraw if something was changed