new approach using registers class
restart