hitregister and paintregister added