added code for reg path