reformating code