reformating code factories