reformating  code