add print all register function