added module for register machine