converted modules to records