issue with bash and  register solve