trying to find register bug