added REGFUNCTIONS