converting old module to new one